// 导入后端接口地址
import { API_CONFIG } from "../config/index.js"
import  request from "../api/index.js"


export const login = (labelname,username, password) =>{
    /*
        {
            username: username,
            password: password
        }
        ==>简写位{username,password}
    */
    return request(API_CONFIG.loginApi,{labelname: labelname,username: username,password: password},"POST",2000)
}

